package com.yx.outSourcing.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yx.outSourcing.entity.dto.AccessApplicationDTO;
import com.yx.outSourcing.entity.po.AccessApplication;
import com.yx.outSourcing.entity.vo.AccessApplicationDetailVO;
import com.yx.outSourcing.entity.vo.AccessApplicationVO;
import com.yx.outSourcing.entity.vo.OutsourcingPersonVO;

import javax.validation.Valid;

public interface IAccessApplicationService extends IService<AccessApplication> {
    // 查询申请单
    Page<AccessApplicationVO> appList();

    // 新增申请单
    Long createApplication(@Valid AccessApplicationDTO dto);

    // 修改申请单
    void updateApplication(Long id, @Valid AccessApplicationDTO dto);

    // 删除申请单
    void deleteApplication(Long id);

    // 获取申请单详情
    AccessApplicationDetailVO getApplicationDetail(Long id);
}
